//
//  NavView.m
//  firstpoint
//
//  Created by 泽中 on 2017/7/5.
//  Copyright © 2017年 xzcysoft. All rights reserved.
//

#import "NavView.h"

@implementation NavView

- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        UIView*view=[[UIView alloc]initWithFrame:CGRectMake(0, 0, width_screen, 64)];
        view.backgroundColor=LRRGBColor(22, 141, 210);
        [self addSubview:view];
        _backButton=[UIButton buttonWithType:UIButtonTypeCustom];
        _backButton.frame=CGRectMake(0, 0, 50, 64);
        _backButton.backgroundColor=[UIColor redColor];
       [view addSubview:_backButton];
        _textField=[[UITextField alloc]initWithFrame:CGRectMake(55, 25, width_screen-100, 30)];
        _textField.backgroundColor=[UIColor whiteColor];
        _textField.placeholder=@"不怕晒 不怕晒";
        _textField.layer.cornerRadius=5;
        _textField.layer.borderWidth=1;
        _textField.layer.borderColor=[UIColor whiteColor].CGColor;
        [view addSubview:_textField];

    }
    return self;
}


@end
